Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHRI-2263 Refactor tab and use the reusable tabs component (PMTCT) #1900

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

CynthiaKamau
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes the ticket number in the format OHRI-123 My PR title.
  • My work includes tests or is validated by existing tests.

Summary

Refactor tab and use the reusable tabs component (PMTCT)

Screenshots

Related Issue

Other

Copy link
Contributor

@hadijahkyampeire hadijahkyampeire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good, we just need to align some issues.

launchOptions={tab.launchOptions}
/>
))}
<EncounterListTabsComponent patientUuid={patientUuid} configSchema={motherPreviousVisitConfigSchema} config={config} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CynthiaKamau this might not work because this wasn't a tab, we had such cases in the covid app and for now I would say we just leave it as it is unless we decide to render everything as a tab. if you see this has no tabs or tabPanels but if we treat it like this, it will have that blue tab design, we need to make a decision about this, personally I would say we make every menu that renders the encounter list table a tab. I don't know what you think. cc @lucyjemutai

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also realised you didn't do the same for hivExposedInfant, so let's have a sync about this and see how we wanna handle that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CynthiaKamau this might not work because this wasn't a tab, we had such cases in the covid app and for now I would say we just leave it as it is unless we decide to render everything as a tab. if you see this has no tabs or tabPanels but if we treat it like this, it will have that blue tab design, we need to make a decision about this, personally I would say we make every menu that renders the encounter list table a tab. I don't know what you think. cc @lucyjemutai

It is a list of tabs
Screenshot 2024-07-08 at 10 06 34

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it working because in the code it doesn't look like that, we were just rendering the Encounter list

Copy link
Contributor

@hadijahkyampeire hadijahkyampeire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @CynthiaKamau

@hadijahkyampeire hadijahkyampeire merged commit f561690 into dev Jul 9, 2024
5 checks passed
@hadijahkyampeire hadijahkyampeire deleted the pmtct-enc-list branch July 9, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants